<extend name="Usercenter/index"/>

<block name="main">
    <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
        <ul class="layui-tab-title">
            <li class="layui-this">全部评价</li>
            <!--<li>失效优惠券</li>-->
        </ul>
        <div class="layui-tab-content">
            <!--全部评价-->
            <div class="layui-tab-item layui-show">
                <if condition="$queryeva eq null">
                    <div class="tr non-info  border-bottom-none">
                        <span>暂时没有评论</span>
                    </div>
                    <else />
                    <table class="layui-table">
                        <colgroup>
                            <col >
                            <col >
                            <col>
                        </colgroup>
                        <thead>
                        <tr>
                            <th >商品名</th>
                            <th>评价时间</th>
                            <th >评价内容</th>
                            <th >相符程度</th>
                        </tr>
                        </thead>
                        <tbody>
                        <foreach name="queryeva" item="vo" key="k">
                            <tr>
                                <td>{{$vo.name}}</td>
                                <td>{{$vo.create_time}}</td>
                                <td>{{$vo.msg}}</td>
                                <td class="pj-b">
                                    <if condition="$vo['grade'] eq '1'">
                                        <i class="layui-icon">&#xe600;</i>
                                        <elseif condition="$vo['grade'] eq '2'"/>
                                        <i class="layui-icon">&#xe600;</i><i class="layui-icon">&#xe600;</i>
                                        <elseif condition="$vo['grade'] eq '3'"/>
                                        <i class="layui-icon">&#xe600;</i><i class="layui-icon">&#xe600;</i><i class="layui-icon">&#xe600;</i>

                                        <elseif condition="$vo['grade'] eq '4'"/>
                                        <i class="layui-icon">&#xe600;</i><i class="layui-icon">&#xe600;</i><i class="layui-icon">&#xe600;</i><i class="layui-icon">&#xe600;</i>
                                        <elseif condition="$vo['grade'] eq '5'"/>
                                        <i class="layui-icon">&#xe600;</i><i class="layui-icon">&#xe600;</i><i class="layui-icon">&#xe600;</i><i class="layui-icon">&#xe600;</i><i class="layui-icon">&#xe600;</i>
                                        <else /> 0
                                    </if>

                                </td>
                            </tr>
                        </foreach>

                        </tbody>
                    </table>
                </if>
            </div>

        </div>
        <script>
            //注意：选项卡 依赖 element 模块，否则无法进行功能性操作
            layui.use('element', function(){
                var element = layui.element;
            });
        </script>
    </div>


</block>